
export default {
    namespaced:true,
    actions:{
        login(context,form){
            context.commit("LOGIN",form);
        },
        save_state(context,data){
            context.commit("LOGIN",data);
        }
    },
    mutations:{
        LOGIN(state,value){
            state.user = value.user;
            state.password = value.password;
        },
        SAVE_STATE(state,data){
            state.login_state = true;
            state.captcha = true;
        }
    },
    state:{
        user:"",
        password:"",
        login_state:false,
        captcha:false,
    }
}